package com.heima.article.feign;

import com.heima.apis.article.IFollowClient;
import com.heima.article.service.ArticleService;
import com.heima.model.article.pojos.ApArticle;
import com.heima.model.user.Dtos.AllDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FollowClient implements IFollowClient {

    @Autowired
    private ArticleService articleService;

    @PostMapping("/api/v1/follow/select")
    @Override
    public ApArticle selectOne(AllDto dto) {
        return articleService.selectOne(dto);
    }
}
